package com.wuzao.FactoryPattern.second.factory;

import com.wuzao.FactoryPattern.second.pizza.CaliforniaPizza1;
import com.wuzao.FactoryPattern.second.pizza.Pizza;

public class CaliforniaPizzaFactory implements PizzaFactory{
    @Override
    public Pizza getPizza(String type) {
        Pizza pizza = null;
        if(type.equals("California1")){
            pizza = new CaliforniaPizza1();
        }
        return pizza;
    }
}
